package com.seari.bean.ats;

/**
 * @author TOUC
 * 列车位置信息
 * 恢复连接时 , ATS立即给Cios发送位置信息 , 随后每十秒发送一次
 *
 *	消息id为 <>ATS_CIOS_TRAIN_LOCATION	0x1001
 *
 */
public class AtsCiosTrainLocation {

	private int len ;

	private int msg_id;
	//列车数目
	private int train_cnt;
	//列车车体号 , 如果未知 ,则为0
	private int train_unit_number;
	//列车服务号
	private int train_service_number;
	// 目的地号
	private int destination_id;
	//列车运行方向 , 0为上行 , 1为下行 , 2为未知
	private int direction;
	//列车上行侧车站编号
	private int Station_ID_in_Up_Side;
	//列车下行侧车站编号
	private int Station_ID_in_Down_Side;
	// 列车属性	bit()为1表示计划车 , 0表示非计划车 , bit2.3位,00表示准点 , 10表示晚点 , 11 表示未知
	private AtsCiosTrainLocationBitStatus atsCiosTrainLocationBitStatus;
	//列车所在车次窗的编号
	private int Window_handle;

	public int getLen() {
		return len;
	}

	public void setLen(int len) {
		this.len = len;
	}

	public int getMsg_id() {
		return msg_id;
	}

	public void setMsg_id(int msg_id) {
		this.msg_id = msg_id;
	}

	public int getTrain_cnt() {
		return train_cnt;
	}

	public void setTrain_cnt(int train_cnt) {
		this.train_cnt = train_cnt;
	}

	public int getTrain_unit_number() {
		return train_unit_number;
	}

	public void setTrain_unit_number(int train_unit_number) {
		this.train_unit_number = train_unit_number;
	}

	public int getTrain_service_number() {
		return train_service_number;
	}

	public void setTrain_service_number(int train_service_number) {
		this.train_service_number = train_service_number;
	}

	public int getDestination_id() {
		return destination_id;
	}

	public void setDestination_id(int destination_id) {
		this.destination_id = destination_id;
	}

	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}

	public int getStation_ID_in_Up_Side() {
		return Station_ID_in_Up_Side;
	}

	public void setStation_ID_in_Up_Side(int station_ID_in_Up_Side) {
		Station_ID_in_Up_Side = station_ID_in_Up_Side;
	}

	public int getStation_ID_in_Down_Side() {
		return Station_ID_in_Down_Side;
	}

	public void setStation_ID_in_Down_Side(int station_ID_in_Down_Side) {
		Station_ID_in_Down_Side = station_ID_in_Down_Side;
	}

	public int getWindow_handle() {
		return Window_handle;
	}

	public void setWindow_handle(int window_handle) {
		Window_handle = window_handle;
	}

    public AtsCiosTrainLocationBitStatus getAtsCiosTrainLocationBitStatus() {
        return atsCiosTrainLocationBitStatus;
    }

    public void setAtsCiosTrainLocationBitStatus(AtsCiosTrainLocationBitStatus atsCiosTrainLocationBitStatus) {
        this.atsCiosTrainLocationBitStatus = atsCiosTrainLocationBitStatus;
    }

    @Override
    public String toString() {
        return "AtsCiosTrainLocation{" +
                "len=" + len +
                ", msg_id=" + msg_id +
                ", train_cnt=" + train_cnt +
                ", train_unit_number=" + train_unit_number +
                ", train_service_number=" + train_service_number +
                ", destination_id=" + destination_id +
                ", direction=" + direction +
                ", Station_ID_in_Up_Side=" + Station_ID_in_Up_Side +
                ", Station_ID_in_Down_Side=" + Station_ID_in_Down_Side +
                ", atsCiosTrainLocationBitStatus=" + atsCiosTrainLocationBitStatus +
                ", Window_handle=" + Window_handle +
                '}';
    }
}
